/**
 * Created by sitm on 2018/4/16.
 */
import Vue from  'vue';
import  App from  './App.vue'
// import  store from  './store'

import axios from "axios";
axios.defaults.withCredentials=true;
Vue.prototype.$axios = axios

import  router  from './router/index.js';

router.beforeEach(function (to,from,next) {
  document.title = to.meta.title
  //拦截跳转
  // if(to.path==='/list'){
  //   next({path:'/add'})
  // }
  next()
})



var Vm = new Vue({
  el:"#app",
  router,
  // store,
  render:h=>h(App)
})


